/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.goatrock.media.thisway.common.util;

import org.apache.log4j.Logger;

public class NumberHelper {
    private static Logger logger = Logger.getLogger(NumberHelper.class);

    public static int convertStringToInt(String num){
        int numInt = -1;

        try{
            numInt = Integer.parseInt(num);
        }catch(NumberFormatException e){
            logger.warn("Unable to convert string to int. Value: "+num);
        }

        return numInt;
    }
}
